<%@ page import="com.lagou.edu.pojo.Resume" %><%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2020-01-24
  Time: 17:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加/修改简历信息</title>
</head>
<body>
    <%
        Long id = (Long)request.getAttribute("id");
        Resume resume = null;
        if(id!=null) {
            resume = (Resume)request.getAttribute("resume");
        }
    %>
    <h1><%=id==null?"添加":"修改"%></h1>
    <form action="<%=id==null?"/resume/add":"/resume/update"%>" method="POST">
        <%if(id!=null) {%>
            <input type="hidden" name="id" value="<%=id%>">
        <%}%>
        用户名<input type="text" name="name" value="<%=id==null?"":resume.getName()%>"><br/>
        地址<input type="text" name="address" value="<%=id==null?"":resume.getAddress()%>"><br/>
        电话<input type="text" name="phone" value="<%=id==null?"":resume.getPhone()%>"><br/>
        <input type="submit" value="提交">
    </form>
</body>
</html>
